import { getRandomArray } from  '@/util/array'
export default {
    CollegeAdminRecord: () => {
        let data ={
            code: 1,
            data: [],
            msg: '获取数据成功'
        }
        for (let i=0; i<10;i++){
            data.data.push({
                account: Math.floor(Math.random()*10000).toString(),   // 可均衡获取 0 到 9 的随机整数。,
                collegeAdminId: i,
                password: '123456',
                name: getRandomArray(['张三','李四','王五','赵六','韩信','小乔','妲己']),
                college: '计算机学院',
                collegeId: '11'
            })
        }
        return data
    },
    optionOk: () => ({ // 操作成功通知
      code: 1,
      data: null,
      msg: "操作成功"
    })
}
